<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>出海预约信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<!-- <ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/ship/shipSeaBook/">出海预约信息列表</a></li>
		<shiro:hasPermission name="ship:shipSeaBook:edit"><li><a href="${ctx}/ship/shipSeaBook/shipSeaBookform">出海预约信息添加</a></li></shiro:hasPermission>
	</ul> -->
	<form:form id="searchForm" modelAttribute="shipSeaBook" action="${ctx}/ship/shipSeaBook/shipSeaBookView" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<input type="hidden" id="dateTypeName" name="dateTypeName" value="${param.dateTypeName}"/>
		<input type="hidden" id="year" name="year" value="${param.year}"/>
		<input type="hidden" id="month" name="month" value="${param.month}"/>
		<input type="hidden" id="weekDate" name="weekDate" value="${param.weekDate}"/>
		<div>
			<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;船籍港：</label>
			<form:input path="homePort" htmlEscape="false" maxlength="50" class="input-search"/>
			<label>&nbsp;&nbsp;&nbsp;预约人姓名：</label>&nbsp;&nbsp;
			<form:input path="bookUserName" htmlEscape="false" maxlength="50" class="input-search"/>
			<input id="btn_search" class="btn btn-primary" type="submit" value="查询"/>
		</div>
		<%-- <div style="margin-top:8px;">
			<label>预约开始时间：</label>
				<input name="beginAppointDate" type="text" readonly="readonly" maxlength="20" class="input-search Wdate"
					value="<fmt:formatDate value="${shipSeaBook.beginAppointDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
				<label>预约结束时间：</label> 
				<input name="endAppointDate" type="text" readonly="readonly" maxlength="20" class="input-search Wdate"
					value="<fmt:formatDate value="${shipSeaBook.endAppointDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
					&nbsp;&nbsp;
		</div> --%>
	</form:form>
	<sys:message content="${message}"/>
	<div class="css-tl">
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<%-- <shiro:hasPermission name="ship:shipSeaBook:edit">
					<th>操作</th>
				</shiro:hasPermission> --%>
				<th>船籍港</th>
				<th class="sort-column bookUserName">预约人姓名</th>
				<th class="sort-column appointDate">预约时间</th>
				<th class="sort-column shipNo">船牌号</th>
				<th>手机号码</th>
				<th>预约办理地址</th>
				<th class="sort-column createDate">创建时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="shipSeaBook">
			<tr>
				<%-- <shiro:hasPermission name="ship:shipSeaBook:edit"><td class="center">
					<a href="javascript:void(0);" onclick='opendetailWindow("ship/shipSeaBook/shipSeaBookForm?id=${shipSeaBook.id}","查看",1000,480,"10px")'><img src="${ctxStatic}/images/sd/icon57.png"></a>
    				<a href="javascript:void(0);"  onclick='opencreateWindow("ship/shipSeaBook/shipSeaBookForm?id=${shipSeaBook.id}","修改",1000,480,"10px")'><img src="${ctxStatic}/images/sd/icon58.png"></a>
					<a href="${ctx}/ship/shipSeaBook/delete?id=${shipSeaBook.id}" onclick="return confirmx('确认要删除该出海预约信息吗？', this.href)"><img src="${ctxStatic}/images/sd/icon59.png"></a>
				</td></shiro:hasPermission> --%>
				<td>
					${shipSeaBook.homePort}
				</td>
				<td>
					
					${shipSeaBook.bookUserName}
				</td>
				<td>
					
					<fmt:formatDate value="${shipSeaBook.appointDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					
					${shipSeaBook.shipNo}
				</td>
				<td>
					
					${shipSeaBook.telephone}
				</td>
				<td>
					
					${shipSeaBook.appointAddress}
				</td>
				<td>
					
					<fmt:formatDate value="${shipSeaBook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	</div>
	<%-- <div class="list-bq">
		<ul>
			<li><img src="${ctxStatic}/images/sd/icon57.png" /><span>查看</span>
			</li>
			<li><img src="${ctxStatic}/images/sd/icon58.png" /><span>修改</span>
			</li>
			<li><img src="${ctxStatic}/images/sd/icon59.png" /><span>删除</span>
			</li>
		</ul>
	</div> --%>
	<div class="pagination">${page}</div>
	
	<!-- <script type="text/javascript">
		/* add for lxh 20160309
		url :url /allAsset/dialogCategoryIndex
		title:标题
		width：宽度
		height：高度
		top：窗口离顶部的距离,可以是百分比或像素(如 100px)
		use:打开新增窗口
		*/
		 function opencreateWindow(url,title,width,height,topValue){
			url ="iframe:"+"${ctx}/"+url;
			topValue = (topValue =='' ? '10%':'10px');
			top.$.jBox.open(url, title, width, height, { 
				persistent: true, 
				top:topValue,
				buttons: {},submit:function(v,h,f){
				 /*  点击窗口按钮后的回调函数，返回true时表示关闭窗口，参数有三个，
					 v表示所点的按钮的返回值，
					 h表示窗口内容的jQuery对象，
					 f表示窗口内容里的form表单键值
				  */
				},
				closed: function () { 
					/* 窗口关闭后执行的函数 */
					var istrue=$('#closedwindow', window.parent.document).val();
					if(istrue=="true"){
						//window.location.reload();
						$('#closedwindow', window.parent.document).val("false");
						$("#btn_search").click();
					}
				} 
			});
		} 
	</script> -->
	
</body>
</html>